package com.svs.quartz.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.svs.common.base.BaseEntity;
import com.svs.quartz.helper.WisDataGroupHelper;
import com.svs.common.annotation.Excel;

/**
 * 数据同步字段表 wis_data_col
 * 
 * @author 杜建桥
 * @date 2019-02-16
 */
public class WisDataCol extends BaseEntity<WisDataCol> {

	private static final long serialVersionUID = 1L;

	/** 主键 */
	private Long id;

	/** 同步组ID */
	private Long groupId;

	/** 字段名称 */
	@Excel(name = "字段名称")
	private String colName;

	/** 目标字段 */
	@Excel(name = "目标字段")
	private String targetCol;

	/** 字段描述 */
	@Excel(name = "字段描述")
	private String colDesc;

	/** 目标字段描述 */
	@Excel(name = "目标字段描述")
	private String targetDesc;

	/** 字段类型 */
	@Excel(name = "字段类型")
	private String colType;

	/** 目标字段类型 */
	@Excel(name = "目标字段类型")
	private String targetType;

	/** 默认值 */
	@Excel(name = "默认值")
	private String dvalue;

	/** 目标字段默认值 */
	@Excel(name = "目标字段默认值")
	private String tdvalue;

	/** 是否关联字段 */
	@Excel(name = "是否关联字段")
	private Integer linkedCol;

	public String getDvalueStr() {
		return WisDataGroupHelper.getDvalueStr(dvalue) ;
	}
	public String getTdvalueStr() {
		return WisDataGroupHelper.getDvalueStr(tdvalue) ;
	}
	
	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return id;
	}

	public void setGroupId(Long groupId) {
		this.groupId = groupId;
	}

	public Long getGroupId() {
		return groupId;
	}

	public void setColName(String colName) {
		this.colName = colName;
	}

	public String getColName() {
		return colName;
	}

	public void setTargetCol(String targetCol) {
		this.targetCol = targetCol;
	}

	public String getTargetCol() {
		return targetCol;
	}

	public void setColDesc(String colDesc) {
		this.colDesc = colDesc;
	}

	public String getColDesc() {
		return colDesc;
	}

	public void setTargetDesc(String targetDesc) {
		this.targetDesc = targetDesc;
	}

	public String getTargetDesc() {
		return targetDesc;
	}

	public void setColType(String colType) {
		this.colType = colType;
	}

	public String getColType() {
		return colType;
	}

	public void setTargetType(String targetType) {
		this.targetType = targetType;
	}

	public String getTargetType() {
		return targetType;
	}

	public String getDvalue() {
		return dvalue;
	}

	public void setDvalue(String dvalue) {
		this.dvalue = dvalue;
	}

	public String getTdvalue() {
		return tdvalue;
	}

	public void setTdvalue(String tdvalue) {
		this.tdvalue = tdvalue;
	}

	public void setLinkedCol(Integer linkedCol) {
		this.linkedCol = linkedCol;
	}

	public Integer getLinkedCol() {
		return linkedCol;
	}

	public String toString() {
		return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("id", getId())
				.append("groupId", getGroupId()).append("colName", getColName()).append("targetCol", getTargetCol())
				.append("colDesc", getColDesc()).append("targetDesc", getTargetDesc()).append("colType", getColType())
				.append("targetType", getTargetType()).append("linkedCol", getLinkedCol()).toString();
	}
}
